#![allow(unreachable_code, unused_labels)]

fn main() {
    // if we remove the single quote, then compiler will report an error:
    // malformed loop label   ^^^^^ help: use the correct loop label format: `'outer`
    'outer: loop {
        println!("Entered the outer loop");

        'inner: loop {
            println!("Entered the inner loop");
            break 'outer;
        }
        println!("This point will never be reached");
    }
    println!("Exited the outer loop");
}